<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <canvas id="cansElem" width="400" height="300">

    </canvas>

    <script>
        var canvas = document.getElementById('cansElem');
        var context = canvas.getContext('2d');
        context.lineWidth = '10';
        context.strokeStyle = '#39c5bb';
        context.lineCap = 'round';
        context.moveTo(30, 30);
        context.lineTo(100, 30);
        context.lineTo(30, 100);
        context.lineTo(100, 100);
        context.stroke();
    </script>


</body>

</html>